using Nextem.String;

using Microcosm.Common;

namespace Microcosm.Server {
	[CosmInterface]
	public class Avatar {
		mutable AvatarId_ : int = -1;
		
		public remoteEvent(0) event PositionUpdate : CosmEventHandler [(float * float * float) * (float * float * float)];
		
		remoteProperty(1) AvatarIdClient : int { get }
		public AvatarId : int {
			get {
				when(AvatarId_ == -1)
					AvatarId_ = AvatarIdClient;
				AvatarId_
			}
		}
	}
}
